<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1.0" />
		<title>我是一个webpack2 测试</title>
		<script>
			//动态适配分辨率
			var docEl = document.documentElement;
			var resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
			var recalc = function() {
				var clientWidth = docEl.clientWidth;
				if(!clientWidth) return;
				if(clientWidth < 320) {
					clientWidth = 320
				} else if(clientWidth > 640) {
					clientWidth = 640
				}
				docEl.style.fontSize = Math.floor(50 * (clientWidth / 320)) + 'px';
			};
			window.addEventListener(resizeEvt, recalc, false);
			recalc();
			window.__INITIAL_STATE__ = {};
		</script>
	</head>
	
	<body>
		<div id="app"></div>
	</body>

</html>